import java.util.Scanner;
public class MulForExercise01 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		double totalcount = 0;
		double avg = 0;
		int passnum = 0;
		//化繁为简
		//先死后活
		int classnum = 3;
		int stunum = 5;
		for(int j = 0; j < classnum; j++){
			double count = 0;
			for(int i = 0; i < stunum; i++){
				double score = scanner.nextDouble();
				count += score;
				if(score >= 60)
					passnum++;
			}
			totalcount += count; 
			avg = count / stunum;
			System.out.println(j + "班的平均分为" + avg);
	    }
	    System.out.println("总平均分为：" + totalcount / (classnum * stunum));
		System.out.println("及格人数为" + passnum);

	}
}